import request2 from '@/utils/request2'
// const HttpServe = "https://42-api.cdfangqi.cn/index.php"
import request from '@/utils/request'
const HttpServe = "https://42-gql.cdfangqi.cn"

export function GQL(query) {
   return  request({
    url: HttpServe+'/GQL-38659GSL68PGS9L',
    method: 'post',
    data: query
  })
}
export function login(data) {
  return request2({
    url: '/Welcome/login',
    method: 'post',
    data
  })
}

export function getInfo(token) {
  return request2({
    url: '/Welcome/info',
    method: 'get',
    params: { token }
  })
}

export function logout() {
  return request2({
    url: '/Welcome/logout',
    method: 'post'
  })
}
